<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
		li{list-style: none; font-size:16px;}
		</style>
		<link rel="stylesheet" type="text/css" href="js/jquery-easyui-1.4.5/themes/default/easyui.css">
		<link rel="stylesheet" type="text/css" href="js/jquery-easyui-1.4.5/themes/icon.css">
		<script type="text/javascript" src="js/jquery-easyui-1.4.5/jquery.min.js"></script>
		<script type="text/javascript" src="js/jquery-easyui-1.4.5/jquery.easyui.min.js"></script>
		<script>
		function getAll(){
			$.ajax({
				url:'abase?method=getall',
				type:'post',
				dataType:'json',
				success:function(d){
					$("#uli").html("注册用户总数："+d[1]+"");
					$("#rli").html("收录餐厅总数："+d[0]+"");
					$("#tli").html("主帖数："+d[2]+"");
					$("#uli2").html("注册用户数："+d[4]+"");
					$("#rli2").html("收录餐厅数："+d[3]+"");
					$("#tli2").html("主帖数："+d[5]+"");
				}
			})
		};

			$(function(){
						getAll();
				$('#tt').tree({
					onClick: function(node){
					if(   $("#tabs").tabs('exists',""+node.text+"")    ){
						$("#tabs").tabs('select',""+node.text+"")
					}
					else{
							$("#tabs").tabs('add',{
							title:node.text,
							content:'<iframe src="'+node.id+'.html" width="98%" height="98%" scrolling="no" frameborder="0"></iframe>',
							closable:true,
							selected:true
						});
					}
					}
				});
			});
		</script>
	</head> 
	<body class="easyui-layout">
	<div data-options="region:'north',border:false" style="height:80px;padding:10px;font-size: 25px;line-height: 50px;text-align: center;"> <div style="float: left;"><img src="img/logoword.jpg" height="50" /></div> 吃货联盟——管理员系统</div>
	<div data-options="region:'east',title:'信息总览',split:true" style="width:200px;">

	<div id="aa" class="easyui-accordion" style="width:300px;height:300px;">
    <div title="总数" id='all' style="overflow:auto;padding:10px;">
		<ul>
	<li id="uli"></li>
	<li>&nbsp;</li>
	<li id="rli"></li>
	<li> &nbsp;</li>
	<li id="tli"></li>
	</ul>
    </div>
    <div title="今日新增" data-options="selected:true" style="padding:10px;">
			<ul>
	<li id="uli2"></li>
	<li> &nbsp;</li>
	<li id="rli2"></li>
	<li> &nbsp;</li>
	<li id="tli2"></li>
	</ul>
    </div>
</div>
	</div>
	<div data-options="region:'west',title:'管理菜单'" style="width:150px;padding:10px;">
		<ul id="tt" class="easyui-tree">
					<li id='aUser'>用户管理</li>
					<li id='aRestaurant'>店铺管理</li>
					<li id='aMsg'>消息管理</li>
		</ul>
	</div>
	<div data-options="region:'center'">
		<div id="tabs" class="easyui-tabs" fit="true"></div>
	</div>
	
</body>
</html>
